package com.anjie.powerproject.pojo;

import com.anjie.powerproject.entity.Relationship;


public class CustomRelationship{
    private Integer id;
    private Integer deviceTo;
    private String deviceName;
    private float lossRate;
    private int typeId;
    private String typeName;

    public CustomRelationship() {
    }

    public CustomRelationship(Integer id, Integer deviceTo, String deviceName, float lossRate, int typeId) {
        this.id = id;
        this.deviceTo = deviceTo;
        this.deviceName = deviceName;
        this.lossRate = lossRate;
        this.typeId = typeId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public Integer getDeviceTo() {
        return deviceTo;
    }

    public void setDeviceTo(Integer deviceTo) {
        this.deviceTo = deviceTo;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public float getLossRate() {
        return lossRate;
    }

    public void setLossRate(float lossRate) {
        this.lossRate = lossRate;
    }

    @Override
    public String toString() {
        return "CustomRelationship{" +
                "id=" + id +
                ", deviceTo=" + deviceTo +
                ", deviceName='" + deviceName + '\'' +
                ", lossRate=" + lossRate +
                ", typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                '}';
    }
}
